package com.swt.service.T_service.impl;

import com.swt.dao.Tdao.VipStaffDao;
import com.swt.domain.User;
import com.swt.domain.Vipcard;
import com.swt.service.T_service.VipStaffService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service(value = "TVipService")
@Transactional
public class VipStaffServiceImpl implements VipStaffService {
    @Resource(name = "TVipDao")
    private VipStaffDao vipStaffDao;
    @Override
    public List<User> queryService(int page, String query, int clubClubId) {
        return vipStaffDao.queryDao(page,query,clubClubId);
    }

    @Override
    public List<Vipcard> queryVipCardService(int userid) {
        return vipStaffDao.queryVipCardDao(userid);
    }

    public VipStaffDao getVipStaffDao() {
        return vipStaffDao;
    }

    public void setVipStaffDao(VipStaffDao vipStaffDao) {
        this.vipStaffDao = vipStaffDao;
    }
}
